package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AdminMessagesDao;
import ex.com.jm.food.entity.Messages;
import ex.com.jm.food.service.AdminMessagesService;

public class AdminMessagesServiceImpl implements AdminMessagesService {

	private AdminMessagesDao adminMessageDao;
	public AdminMessagesDao getAdminMessageDao() {
		return adminMessageDao;
	}

	public void setAdminMessageDao(AdminMessagesDao adminMessageDao) {
		this.adminMessageDao = adminMessageDao;
	}

	@Override
	public List<Messages> getMessages(int initPage, int pageRow, String value,
			String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminMessageDao().getMessages(initPage, pageRow, value, s_date, e_date);
	}

	@Override
	public int messCount(String value, String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminMessageDao().messCount(value, s_date, e_date);
	}

	@Override
	public Object saveMess(Messages messages) {
		// TODO Auto-generated method stub
		return this.getAdminMessageDao().saveMess(messages);
	}

	@Override
	public void updateMess(Messages messages) {
		// TODO Auto-generated method stub
       this.getAdminMessageDao().updateMess(messages);
	}

	@Override
	public Messages editMess(Integer id) {
		// TODO Auto-generated method stub
		return this.getAdminMessageDao().editMess(id);
	}

	@Override
	public void delMess(Integer id) {
		// TODO Auto-generated method stub
	   this.getAdminMessageDao().delMess(id);
	}

}
